package org.example.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Auther:Liu
 * @Testname:Book
 * @Date:2025/8/5 12:30
 */
@Data
@NoArgsConstructor
@TableName(value = "book")
public class Book implements Serializable {
    private static final long serialVersionUID = 1129548770410126789L; // 使用序列化时的原始值

    @TableId(value = "id")
    private String id;

    private String categoryId;
    private String name;
    private String author;
    private String publisher;
    private Double price;
    private String imageName;
    private String description;
    private String createTime;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;
    private Integer status;
    @TableLogic(delval = "1",value = "0")
    private Integer isDeleted;
    @TableField(exist = false)
    private Double discountRate;
    @TableField(exist = false)
    private Double discountPrice;
    @TableField(exist = false)
    private String discountId;
    @TableField(exist = false)
    private Boolean Show=Boolean.FALSE; //标记图书

    @TableField(exist = false)
    private Integer BookNumber;  //书本数量
}
